<template>
    <div>
        <p v-color="colorStr" @click="changeColor">修改文字颜色</p>
    </div>
</template>


<script>

export default {
    data() {
        return {
            colorStr: '#000000'
        }
    },
    methods: {
        changeColor() {
            this.colorStr = '#ff0000'
        }
    }
}

</script>

<style scoped></style>
